<template>
  <div class="getter">
    {{ count }}
    <button @click="add">ADD State</button>
  </div>
</template>

<script>
import store from '@/store/store.js'
// import { mapGetters } from 'vuex'
export default {
  data () {
    return {}
  },
  computed: {
    // ...mapGetters(['getCount'])
    count () {
      return store.getters.getCount
    }
  },
  methods: {
    add () {
      this.$store.commit('add')
    }
  }
}
</script>
